Skip to main content

mouseV

Type

function

Summary

The mouseV property returns the vertical position of the pointer.

Syntax

the mouseV
mouseV()

Description

Use the mouseV function to find out where the mouse pointer is.

The returned value is the vertical distance in pixels from the top edge of the current stack to the location of the mouse pointer. (Use the defaultStack property to identify the current stack.)

If the mouseV is positive, the pointer is below the top of the stack window. If the number is negative, the pointer is above the stack window.

This function is equal to item 2 of the mouseLoc function.

note

When in a mouseDown handler, you can use the clickV function to get the position of the mouse as it was when the mouseDown action occurred.

tip

The mouseMove message sends the mouse's vertical position as a parameter. This means that in a mouseMove handler, normally it's not necessary to use the mouseV function.

Examples

the mouseV
put the mouseV into savedLocation

message: mouseMove

property: screenMouseLoc

control structure: function

function: mouseStack, mouseLoc, clickV, mouseH

glossary: property, return, stack window, handler, negative, parameter, mouse pointer, current stack

keyword: integer, pointer

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?